<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%@ taglib uri="/struts-tags" prefix="s"%>
<link href="images/skin.css" rel="stylesheet" type="text/css" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
<script type="text/javascript">
function CheckPost()
{
	if (myform.userName.value=="")
	{
		alert("请填写用户名~~~亲！");
		myform.userName.focus();
		return false;
	}
	if (myform.password.value=="")
	{
		alert("请填写密码呀~~~亲！");
		myform.password.focus();
		return false;
	}
	if (myform.password.value!=myform.password2.value)
	{
		alert("两次密码不一样啊~~~亲！");
		myform.password.focus();
		return false;
	}
	
}
</script>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">修改密码</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    <center>
	<form action="../users!update.action" name="myform" method="post" onsubmit="return CheckPost();">
		<p>
			<label>用户名:</label>
			<label>
			<input name="userName" size="30" value="<%=session.getAttribute("user")%>" type=text readonly style="border-style:solid; border-top:none;border-left:none;border-right:none;"/>
			</label>
		</p>
		<p>
			<label>新密码:</label>
			<label>
			<input name="password" size="30" value="" type="password" style="border-style:solid; border-top:none;border-left:none;border-right:none;"/>
			</label>
		</p>
		<p>
			<label>再写遍:</label>
			<label>
			<input name="password2" size="30" value="" type="password" style="border-style:solid; border-top:none;border-left:none;border-right:none;"/>
			</label>
		</p>
		<input name="type" size="30" value="1" type="hidden"/>
		<p><input type="submit" value="修改密码"/></p>
	</form>
	</center>
    </td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>

